package com.dataseek.iot.mysql.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dataseek.iot.mysql.entity.ProductParams;
import com.dataseek.iot.mysql.mapper.ProductParamsMapper;
import com.dataseek.iot.mysql.service.IProductParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cc
 * @since 2021-09-17
 */
@Service
public class ProductParamsServiceImpl extends ServiceImpl<ProductParamsMapper, ProductParams> implements IProductParamsService {


    public List<ProductParams> getAllByProductId(String productId){
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("product_id", productId);
        return this.list(wrapper);
    }
}
